package creational.builder;

public class PdfDocumentBuilder implements PresentationBuilder {
  private final PdfDocument pdfDocument = new PdfDocument();

  @Override
  public void addSlide(Slide slide) {
    pdfDocument.addPage(slide.getText());
  }

  public PdfDocument build() {
    return pdfDocument;
  }
}
